package com.efast.cafe.commponent.statemach.service;

import com.efast.cafe.commponent.statemach.bean.PortalStateMachResourceBean;

public interface IPortalStateMachResourceService {
	/**
	 * 添加资源
	 * 
	 * @param ResourceTaskBean
	 */
	public Long insertResource(PortalStateMachResourceBean ResourceTaskBean);

	/**
	 * 编辑资源
	 * 
	 * @param ResourceTaskBean
	 */
	public Long updateResource(PortalStateMachResourceBean ResourceTaskBean);

	/**
	 * 删除资源
	 * 
	 * @param ResourceTaskBean
	 */
	public void deleteResource(PortalStateMachResourceBean ResourceTaskBean);

	/**
	 * 启用或者停用
	 */

	public void startAndStop(PortalStateMachResourceBean ResourceTaskBean);

	/**
	 * 锁定解锁资源
	 * 
	 * @param isLock
	 * @param taskId
	 */
	public void lockResource(int isLock, Long taskId);

	/**
	 * 根据类型和id获取资源数据
	 * 
	 * @param type
	 * @param id
	 */
	public Object getResource(String type, Long id, boolean isExt);
}
